<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'delete-comfirmation',
    'enableAjaxValidation' => false,
	));
?>
<script>
	if ($.fn.yiiGridView.getChecked("DataGrid", "chkId").length == 0) {
	$('#update-dialog-message').html('<?php
echo t('MSG_REMIND_SELECT_ROW', 'messages', array('{0}' => $confirmMessages == null ? t('BTN_DELETE') : $confirmMessages));
?>');
	$('#update-dialog-buttons').html('<input type="button" id="btnOk" name="btnOk" value="<?php echo t('BTN_OK');?>" class="button ok" onclick="$(&#039;#update-dialog&#039;).dialog(&#039;close&#039;)" />');
    }
</script>
<div id="update-dialog-message" style="margin: 5px 0px 20px 0px">
    <?php
    echo t('MSG_CONFIRM_ACTION', 'messages', array('{0}' => $confirmMessages == null ? t('BTN_DELETE') : $confirmMessages));
    ?>
</div>
<div id="update-dialog-buttons" style="text-align: center;">
    <?php
    echo Html::buttonConfirm(t('BTN_YES'), 'deleteConfirmed');
    echo Html::buttonConfirm(t('BTN_NO'), 'deleteCanceled', 'cancel');
    ?>
</div>
<?php $this->endWidget(); ?>

